package com.lagou.bean;

import com.lagou.service.MyMethod;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * @author boting.guo
 * @date 2021/11/20 11:38
 */

@Component
public class MyMethodConsumer {

	@Reference(timeout = 20000)
	private MyMethod myMethod;


	public void consume() {
		while (true) {
			myMethod.methodA();
			myMethod.methodB();
			myMethod.methodC();
		}
	}
}
